package com.frank.millen;

import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebSession;
import org.apache.wicket.request.Request;

public class milSession extends WebSession {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static milSession get() {
		return (milSession) Session.get();
	}
	
	private User user;
	
	public milSession(Request application) {
		super(application);
	}
	
	public boolean isAuthenticated() {
		return (user != null);
 	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}
